]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Pass the correct id to makeButton()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 22 Oct 2013 00:03:10 +0000 (02:03 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 25 Oct 2013 13:15:10 +0000 (14:15 +0100)
The function expects the action's ID, not the notification's one.

https://bugzilla.gnome.org/show_bug.cgi?id=710596

js/ui/notificationDaemon.js

index 42dedbdafa7379b31d23f9206de52e0cb0b95965..22e4b9e37d849413f3692ff18ad455ca6db7dfee 100644 (file)
@@ -436,7 +436,7 @@ const FdoNotificationDaemon = new Lang.Class({
                 if (actionId == 'default') {
                     hasDefaultAction = true;
                 } else {
-                    notification.addButton(this._makeButton(id, label, useActionIcons), Lang.bind(this, function() {
+                    notification.addButton(this._makeButton(actionId, label, useActionIcons), Lang.bind(this, function() {
                         this._emitActionInvoked(ndata.id, actionId);
                     }));
                 }